package com.spring.framework.config.bean.model;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author xuweizhi
 */
@Component
public class BeanFactoryDemo {


	/**
	 * 使用@Bean的方式注册bean
	 */
	@Bean
	public BeanFactoryDemo getBeanFactoryDemo() {
		return new BeanFactoryDemo();
	}
}
